package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.AppMessage;

public interface IAppMessageService extends IService<AppMessage>
{

    /**
     *  新写入数据库记录,app_message
     *
     * @param record
     */
    ServerResponse<AppMessage> insert(AppMessage record);


    /**
     * 根据消息代号更改消息内容
     * @param message
     * @return
     */
    ServerResponse<AppMessage> updateByMessageCode(AppMessage message);

    /**
     *  根据指定消息代号获取一条数据库记录,app_message
     *
     * @param messageCode
     */
    ServerResponse<AppMessage> selectByMessageCode(String messageCode);
}
